﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using WindowsForms.Class;

namespace WindowsForms
{
    public partial class PrintAddMenu : DevExpress.XtraEditors.XtraForm
    {
        List<BookingDetailModel> bookingDetailModelLs;
        string message;

        public string Message
        {
            get { return message; }
            set { message = value; }
        }

        public List<BookingDetailModel> BookingDetailModelLs
        {
            get { return bookingDetailModelLs; }
            set { bookingDetailModelLs = value; }
        }
        public PrintAddMenu()
        {
            InitializeComponent();
        }
        protected override void OnActivated(EventArgs e)
        {
            base.OnActivated(e);
            lblMess.Text = Message;

            gridPrintAddMenu.DataSource = bookingDetailModelLs;
            gridPrintAddMenu.Refresh();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btnPrintAddMenu_Click(object sender, EventArgs e)
        {

        }
    }
}